#pragma once
#include "wmp.h"
#include "wmpids.h"

#include "player.h"

class CWinMedia :
	public CPlayer

{
public:
	CWinMedia(void);
	~CWinMedia(void);

	int Play(void);
	int Stop(void);
	int Previous(void);
	int Next(void);
	int SetPosition(int ms);
	int GetPosition(void);
int Refresh(char *file, int pos);
	int IsPlaying(void);
	CString GetFileName(int pos);
	int Find(void);
	int PlAdd(char *file, int pos);
	int PlRemove(int pos);
	int PlGetPos(void);
	int PlSetPos(int pos);
	int PlGetSize(void);

	CComPtr<IWMPPlayer4>            m_spPlayer; 
	int _plPos;
	CString _plCurrURL;
};
